package com.tsinghua.discharge.dao;

import com.tsinghua.discharge.model.EnergyBase;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EnergyBaseMapper {
    int deleteByPrimaryKey(Integer energyId);

    int insert(EnergyBase record);

    int insertSelective(EnergyBase record);

    EnergyBase selectByPrimaryKey(Integer energyId);

    int updateByPrimaryKeySelective(EnergyBase record);

    int updateByPrimaryKey(EnergyBase record);
    int selectRepeat(EnergyBase  record);
    int selectId(EnergyBase record);
    List<EnergyBase> selectBySupsectorAndUser(@Param( "sector") String sector, @Param("userId") Integer userId);
    int deleteBySector(@Param( "sector") String sector, @Param("userId") Integer userId);
}